home *** CD-ROM | disk | FTP | other *** search
- on(keyPress "<Tab>"){
- nSize = TabOrderList.length;
- if(nSize < 1)
- {
- return undefined;
- }
- nCounter = 0;
- while(nCounter < nSize)
- {
- if(currentSelection eq TabOrderList[nCounter])
- {
- if(Key.isDown(Key.SHIFT))
- {
- if(nCounter == 0)
- {
- SetAbsoluteTabFocus(nSize - 1,nSize,-1);
- }
- else
- {
- SetAbsoluteTabFocus(nCounter - 1,nSize,-1);
- }
- }
- else if(nCounter == nSize - 1)
- {
- SetAbsoluteTabFocus(0,nSize,1);
- }
- else
- {
- SetAbsoluteTabFocus(nCounter + 1,nSize,1);
- }
- return undefined;
- }
- nCounter += 1;
- }
- SetAbsoluteTabFocus(0,nSize,1);
- }
-